RemoteRegistry

Base Classes

Member Functions
SetServerName
SetRoot
ConnectToServer
QueryStringValue
DisconnectFromServer
QueryStringPrivate
OpenRemoteKey
DisplayError
Test
Top of Document



Boolean = SetServerName(sServerName)


Public function: This function will set the server name for the subsequent functions to use. Use: Boolean SetServerName( '\\\\server' ) Parameters: Server name Returns: TRUE if the function succeeds. FALSE if the function fails.

Parameters
sServerNameString.

Return Value
Boolean

Top of Document


Boolean = SetRoot(nRootKeyToSet)


Public function: This function will set the root key for the subsequent functions to use. Valid root keys are: HKEY_LOCAL_MACHINE HKEY_USERS HKEY_PERFORMANCE_DATA HKEY_CURRENT_CONFIG HKEY_DYN_DATA Use: Boolean SetRoot( HKEY_LOCAL_MACHINE ) Parameters: Root key Returns: TRUE if the function succeeds. FALSE if the function fails.

Parameters
nRootKeyToSetNumber.

Return Value
Boolean

Top of Document


Boolean = ConnectToServer()


Public function: This function will connect you to the server and root specified in SetServerName() and SetRoot() Use: Boolean ConnectToServer () Parameters: None Returns: TRUE if the function connects to remote registry. FALSE if the function fails to connect to the remote registry.

Parameters

Return Value
Boolean

Top of Document


Boolean = QueryStringValue(sPath,sValue,sReturn)


Public function: This function will return the value for a string using the specified path and value name. Use: Boolean QueryStringValue('Software\\Test', 'test1', sRegValue) Parameters: Path: The path in the registry. Value: The value to query. Return string: A string to place the value into. Returns: TRUE if the function succeeds. FALSE if the function fails.

Parameters
sPathString.
sValueString.
sReturnReceive String.

Return Value
Boolean

Top of Document


Boolean = DisconnectFromServer(nHandleToClose)


This function will retun TRUE if the handle is disconnected sucessfully.

Parameters
nHandleToCloseNumber.

Return Value
Boolean

Top of Document


Number = QueryStringPrivate(sValueName,sReturnString)


Private function

Parameters
sValueNameString.
sReturnStringReceive String.

Return Value
Number

Top of Document


Number = OpenRemoteKey(sPath)


Private function

Parameters
sPathString.

Return Value
Number

Top of Document


Number = DisplayError(nTest)


Private function

Parameters
nTestNumber.

Return Value
Number

Top of Document


Number = Test()


This is a demo function to show how to retrieve a string from a remote registry.

Parameters

Return Value
Number

Top of Document